<!DOCTYPE html>
<html >
<!--<html style="filter:grayscale(1)">-->

<head>


    <meta charset="utf-8">
    <title>Sybida后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="/sybida/layui/css/layui.css"  media="all">
    <script src="/sybida/common/js/locahostadress.js" charset="utf-8"></script>
    <style>
        .body{
            display: none;
        }
    </style>
    <style>
        .btn,.ios-switch::before,.ios-switch{border-radius:31px;width:102px;height:62px;background-color:#e9e9eb;}.ios-switch{position:relative;appearance:none;cursor:pointer;transition:all 100ms;}.ios-switch::before{position:absolute;content:"";transition:all 300ms cubic-bezier(0.45,1,0.4,1);}.ios-switch::after{position:absolute;left:4px;top:4px;border-radius:27px;width:54px;height:54px;background-color:#fff;box-shadow:1px 1px 5px rgba(0,0,0,0.3);content:"";transition:all 300ms cubic-bezier(0.4,0.4,0.25,1.35);}.ios-switch:checked{background-color:#5eb662;}.ios-switch:checked::before{transform:scale(0);}.ios-switch:checked::after{transform:translateX(40px);}.ios-switch:checked ~ header,.ios-switch:checked ~ div{filter:invert(1) hue-rotate(180deg);}.ios-switch:checked ~ header img,.ios-switch:checked ~ header video,.ios-switch:checked ~ header .logo,.ios-switch:checked ~ header .icon,.ios-switch:checked ~ header .jubao-con,.ios-switch:checked ~ div img,.ios-switch:checked ~ div video,.ios-switch:checked ~ div .logo,.ios-switch:checked ~ div .icon,.ios-switch:checked ~ div .jubao-con{filter:invert(1) hue-rotate(180deg);}.ios-switch ~ header,.ios-switch ~ div{background-color:#fff;transition:all 300ms;}.ios-switch{position:absolute;right:0;top:0;z-index:99999;outline:none;}
        .ios-switch {
            position: absolute;
            right: 0;
            top: 0;
            z-index: 99999;
            outline: none;
        }
        img,
        video,
        .logo,
        .icon,
        .jubao-con {
            filter: invert(1) hue-rotate(180deg);
        }
        .exclude {
            filter: invert(1) hue-rotate(180deg);
        }
    </style>
</head>
<body>
<div class="layui-layout layui-layout-admin" >
    <div class="layui-header" >
        <ul class="layui-nav">
            <li class="layui-nav-item">
            </li>
            <li class="layui-nav-item">
            </li>
            <li class="layui-nav-item"  >
                 <a href="javascript:;" style="display: inline-block;">未读通知</a><span class="layui-badge " id="advicenum"></span>
                <dl class="layui-nav-child"
                style="position: absolute;left: 0;top: 63px;min-width: 30%;line-height: 30px;
    padding:3px 0;box-shadow: 0 4px 6px rgba(0, 0, 0, .12);border: 1px solid #d2d2d2;background-color: #fff;
    z-index: 100;border-radius: 2px; white-space: nowrap">
                    <dd><a   href="javascript:;" id="infoNav">查看未读通知</a></dd>

                </dl>
            </li>
        </ul>



        <div class="layui-logo" style="margin-top: 5px;">Sybida后台管理</div>
        <!--</ul>-->
        <ul class="layui-nav layui-layout-right">

            <li class="layui-nav-item">

            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img id="userphotoA" src="http://t.cn/RCzsdCq" class="layui-nav-img" style="filter: none;">
                    <span id="username">超级管理员</span>
                </a>
                <dl class="layui-nav-child">
                    <dd><a id="changePswNav" href="javascript:;">修改密码</a></dd>
                    <dd><a onclick="exittologin()">退出登录</a></dd>

                </dl>
            </li>

        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class=""  href="javascript:;">教师模块</a>
                    <dl class="layui-nav-child">
                        <dd><a  id="allTeacher" href="javascript:;">所有教师档案</a></dd>
                        <dd><a  id="addTeacher" href="javascript:;">教师用户添加</a></dd>
                        <dd><a  id="studentInterviewTeacher" href="javascript:;">查看学生面试经历</a></dd>
                        <dd><a  id="studentOfferTeacher" href="javascript:;">查看学生Offer记录</a></dd>
                        <dd><a  id="vitaeEvaluateTeacher" href="javascript:;">学生简历查看评级</a></dd>
                        <dd><a  id="companyManagerTeacher" href="javascript:;">管理企业招聘信息</a></dd>
                        <dd><a  id="companyInfoTeacher" href="javascript:;">企业招聘信息展示</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a class=""  href="javascript:;" >学生模块</a>
                    <dl class="layui-nav-child">
                        <dd><a  id="addStudent" href="javascript:;">批量添加学生</a></dd>
                        <dd><a  id="infoStudent" href="javascript:;">查看学生档案</a></dd>
                        <dd><a  id="studentPersonalInformation" href="javascript:;">学生就业分析</a></dd>
                        <dd><a  id="careerQuizStudent" href="javascript:;">职业测评</a></dd>
                        <dd><a  id="downforallteacher" href="javascript:;">下载简历</a></dd>
                       </dl>
                </li>
                <li class="layui-nav-item">
                    <a class=""  href="javascript:;">公共模块</a>
                    <dl class="layui-nav-child">
                        <dd><a  id="codeCompany" href="javascript:;">发布招聘信息并生成二维码</a></dd>
                        <dd><a  id="showcodeCompany" href="javascript:;">查看企业招聘信息</a></dd>
                        <dd><a  id="classInfo" href="javascript:;">班级信息管理</a></dd>
                        <dd><a  id="studyInfo" href="javascript:;">学习方向信息管理</a></dd>
                        <dd><a  id="makeNotice" href="javascript:;">发布通知</a></dd>
                        <dd><a  id="fileExchange" href="javascript:;">学习交流博客</a></dd>

                    </dl>
                </li>

            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->

       <iframe src="/sybida/teacher/allTeacher.html" style=" overflow: hidden;color: #2b542c" width="100%" height="98.7%"    id="ifream1" ></iframe>

    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        <div style="float: left">© Sybida.com - 思必达网络公司</div>

        <div style="float: right"> 联系方式&nbsp;:&nbsp;18746611186</div>

    </div>
</div>



<script src="/sybida/layui/layui.js" charset="utf-8"></script>

<script src="/sybida/jquery/jquery-3.3.1.min.js"></script>
<script>

    window.onload = wOnload();
    //这是刷新浏览器执行的事件
    function wOnload() {
        var storage = window.sessionStorage;
         var iframeSrc= storage.getItem("ifreammanager");
         if(iframeSrc){
             $("#ifream1").attr("src",iframeSrc)
         }
    }
   var userid=getCookie("userid")
    layui.use('layer', function(){
        var layer = layui.layer;
    });
    $.ajax({
        url: url+"user/userinfoteach",
        type: 'POST',
        //   timeout: '30000',
        data: "userid="+userid ,
        // contentType: 'application/json;charset=utf-8',
        dataType: 'json',
        beforeSend: function(request) {
            request.setRequestHeader("token", userid);
        },
        success: function (data) {
            if(data== -1000){
                location.href=logindexurl
            }else {
                if (data.code == 1) {

                    if (data.data.messageNum == 0) {
                        $("#advicenum").html("0")
                    } else {
                        $("#advicenum").html(data.data.messageNum)
                    }
                    if (data.data.teachName) {
                        $("#username").html(data.data.teachName + "--管理员")

                    } else {

                    }
                    if (data.data.teachPhoto) {

                        $("#userphotoA").attr("src", Qnyurl + data.data.teachPhoto)
                        $("#userphotoA").attr("filter", "none")
                    } else {

                    }


                } else {
                    alert("请检查网络是否连接" + data);
                }
            }
        },
        error: function (data) {
            alert("请检查网络是否连接" + data);
        }
    });
</script>
<script>

   function exittologin(){
       var userid=getCookie("userid")
       layui.use('layer', function(){
           var layer = layui.layer;
       });
       $.ajax({
           url: url+"login/exitlogin",
           type: 'POST',
           //   timeout: '30000',
           data: "userid="+userid ,
           // contentType: 'application/json;charset=utf-8',
           dataType: 'json',
           beforeSend: function(request) {
               request.setRequestHeader("token", userid);
           },
           success: function () {

           }
       });
       location.href="../login.html"
   }
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;
    });
    function changeBody(n){
        var bodys = document.getElementsByClassName('body')
        for (let it of bodys) {
            it.style.display = 'none'
        }document.getElementById(n).style.display = 'block ! important' //显示
    }


   $("#changePswNav").click(
       function () {
           $("#ifream1").attr("src","../publicTool/changePsw.html")
           iframeSrc = $("#ifream1").attr("src")
           var storage = window.sessionStorage;
           storage.setItem("ifreammanager",iframeSrc);
       }
   )
    $("#infoNav").click(
        function () {
            $("#ifream1").attr("src","../publicTool/receiveNotice.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#changePswNav").click(
        function () {
            $("#ifream1").attr("src","../publicTool/changePsw.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#makeNotice").click(
        function () {
            $("#ifream1").attr("src","../publicTool/makeNotice.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#fileExchange").click(
        function () {
            $("#ifream1").attr("src","../publicTool/fileExchange.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#studyInfo").click(
        function () {
            $("#ifream1").attr("src","../publicTool/studyInfo.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )

    $("#classInfo").click(function () {

            $("#ifream1").attr("src","../publicTool/classInfo.html")
        iframeSrc = $("#ifream1").attr("src")
        var storage = window.sessionStorage;
        storage.setItem("ifreammanager",iframeSrc);

    })
    $("#codeCompany").click(
        function () {
            $("#ifream1").attr("src","../company/insertCompany.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
   $("#showcodeCompany").click(
        function () {
            $("#ifream1").attr("src","../company/companyinfo2.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )




    $("#studentAuditionRegister").click(
        function () {
            $("#ifream1").attr("src","../student/studentAuditionRegister.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#jobStudent").click(
        function () {
            $("#ifream1").attr("src","../student/jobStudent.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#careerQuizStudent").click(
        function () {
            $("#ifream1").attr("src","../student/careerQuizStudent.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#studentPersonalInformation").click(
        function () {
            $("#ifream1").attr("src","/sybida/publicTool/totalforstudent.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )

    $("#changeInfoStudent").click(
        function () {
            $("#ifream1").attr("src","../student/changeInfoStudent.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#infoStudent").click(
        function () {
            $("#ifream1").attr("src","../student/classStudent.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#addStudent").click(
        function () {
            $("#ifream1").attr("src","../common/register.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#companyInfoTeacher").click(
        function () {
            $("#ifream1").attr("src","../teacher/companyInfoTeacher.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);

        }
    )
    $("#companyManagerTeacher").click(
        function () {
            $("#ifream1").attr("src","../teacher/companyManagerTeacher.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#vitaeEvaluateTeacher").click(
        function () {
            $("#ifream1").attr("src","../teacher/vitaeEvaluateTeacher.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
    $("#allTeacher").click(
        function () {
            $("#ifream1").attr("src","../teacher/allTeacher.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )

    $("#addTeacher").click(
        function () {
            $("#ifream1").attr("src","../teacher/addTeacher.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )


    $("#studentInterviewTeacher").click(
        function () {
            $("#ifream1").attr("src","../teacher/studentInterviewTeacher.html")
            iframeSrc = $("#ifream1").attr("src")
            var storage = window.sessionStorage;
            storage.setItem("ifreammanager",iframeSrc);
        }
    )
   $("#studentOfferTeacher").click(
       function () {
           $("#ifream1").attr("src","../teacher/ClassstudentOfferForTeacher.html")
           iframeSrc = $("#ifream1").attr("src")
           var storage = window.sessionStorage;
           storage.setItem("ifreammanager",iframeSrc);
       }
   )


   $("#downforallteacher").click(
       function () {
           $("#ifream1").attr("src","../teacher/downforallteacher.html")
           iframeSrc = $("#ifream1").attr("src")
           var storage = window.sessionStorage;
           storage.setItem("ifreammanager",iframeSrc);
       }
   )


</script>
</body>
</html>
